//
//  SummaryMgr.h
//  CarCare
//
//  Created by ileo on 15/4/9.
//  Copyright (c) 2015年 baozun. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DBSummary.h"

typedef NS_ENUM(NSInteger, SummaryData_Type) {

    SummaryData_Mile,
    SummaryData_OilPrice,
    SummaryData_Mark,
    SummaryData_AvgOil,

};

@interface SummaryModel : NSObject

@property (nonatomic, assign) SummaryData_Type type;
@property (nonatomic, assign) Summary_Type dateType;
@property (nonatomic, assign) CGFloat avgNum;
@property (nonatomic, assign) BOOL isNodata;
@property (nonatomic, copy) NSArray *dates;
@property (nonatomic, copy) NSArray *dataInfos;
@property (nonatomic, copy) NSString *avgInfo;
@property (nonatomic, copy) NSString *sumNum;
@property (nonatomic, copy) NSString *sumTitle;
@property (nonatomic, copy) NSString *title;

@end

@interface SummaryMgr : NSObject

@property (nonatomic, assign) Summary_Type type;

-(void)clearDatas;

-(void)needUpdate:(void(^)())update;

-(SummaryModel *)modelWithType:(SummaryData_Type)type;

@end